<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <script type="text/javascript" src="assets/jwplayer.min.js"></script>
    <title>Multiple Tracks</title>
    <link type="text/css" rel="stylesheet" href="assets/style.css" />

</head>
<body>

<h2>Multiple Tracks</h2>

<div id="player"></div>
<script type="text/javascript">
function loadPlayer(options,captions) {
    var defaults = {
        controlbar: 'bottom',
        flashplayer: 'assets/player.swf',
        height: 300,
        plugins: {
            '../captions.js': {
                back: true,
                label: 'English'
            }
        },
        stretching: 'fill',
        width: 600
    };
    for(var param in options) {
        defaults[param] = options[param];
    }
    for(var param in captions) {
        defaults.plugins['../captions.js'][param] = captions[param];
    }
    jwplayer("player").setup(defaults);
}
</script>


<ul>
    <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/aytCR4cx.mp4',image:'http://content.bitsontherun.com/thumbs/aytCR4cx-720.jpg'},{files:'assets/bunny-eng.txt,assets/bunny-ned.txt',labels:'English,Nederlands'})">2 external srt tracks</a></li>

    <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/w5VkaqJ1-393434.mp4',image:'http://content.bitsontherun.com/thumbs/w5VkaqJ1-720.jpg'},{})">6 embedded mp4 tracks</a></li>
    
    <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/3XnJSIm4-52qL9xLP.mp4',image:'http://content.bitsontherun.com/thumbs/3XnJSIm4-720.jpg'},{files:'assets/sintel-ch.srt,assets/sintel-fa.srt,assets/sintel-gr.srt,assets/sintel-jp.srt,assets/sintel-ko.srt,assets/sintel-pl.srt,assets/sintel-ru.srt,assets/sintel-sp.srt,assets/sintel-tr.srt',labels:'Chinese,Farsi,Greek,Japanese,Korean,Polish,Russian,Spanish,Turkish'})">9 external srt tracks</a></li>
     <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/aytCR4cx.mp4',image:'http://content.bitsontherun.com/thumbs/aytCR4cx-720.jpg'},{files:'assets/bunny-eng.txt,assets/bunny-ned.txt'})">2 srt tracks, no labels</a></li>
     
    <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/w5VkaqJ1-393434.mp4',image:'http://content.bitsontherun.com/thumbs/w5VkaqJ1-720.jpg'},{labels:'English,Français,Portugûes,Español,Deutsch,Norske'})">6 mp4 tracks, with labels</a></li>
    <li><a href="javascript:loadPlayer({file:'http://content.bitsontherun.com/videos/3XnJSIm4-52qL9xLP.mp4',image:'http://content.bitsontherun.com/thumbs/3XnJSIm4-720.jpg'},{files:'assets/sintel-ch.srt,assets/sintel-fa.srt,assets/sintel-gr.srt,assets/sintel-jp.srt,assets/sintel-ko.srt,assets/sintel-pl.srt,assets/sintel-ru.srt,assets/sintel-sp.srt,assets/sintel-tr.srt',labels:'Chinese,Farsi,Greek,Japanese,Korean,Polish,Russian,Spanish,Turkish',label:'Greek'})">9 srt tracks, greek preset</a></li>


</ul>




<p>Test in a Flash-enabled browser. In all cases, check whether the correct text track is rendered.<br />
   Also check whether the selection menu is correctly rendered, in normal and full screen.<br/>
   Last, check whether the selected language is stored in a cookie and saved across reloads.
</p>


</body>
</html>